#include "stdafx.h"
#include "GTDContext.h"
#include "GTDDOM.h"

NODE_TYPEIMPL(GTDContext,"GTDContext");
NODE_TYPEIMPL(GTDContextList,"ContextList");

GTDContext GTDContextList::firstContext()
{
	return firstChildElement(GTDContext::sType);
}

GTDContext GTDContextList::addContext( const TCHAR* sName )
{
	GTDContext ctx = createChildElement(GTDContext::sType);
	ctx.setText(sName);
	return ctx;
}

GTDContext GTDContext::nextContext()
{
	return nextSibElement(GTDContext::sType);
}



